﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Cos.Core.Model.Media;

namespace Alogient.Cameleon.Sdk.Items
{
    public class CMVideo
    {
        public int VideoID { get; set; }
        public string CultureCode { get; set; }
        public DateTime CreationDate { get; set; }
        public DateTime ModificationDate { get; set; }
        public DateTime? ApprobationDate { get; set; }
        public int AuthorID { get; set; }
        public string Title { get; set; }
        public string Description { get; set; }
        public string VideoFile { get; set; }
        public string ImageFile { get; set; }
        public string Duration { get; set; }
        public bool ExternalSource { get; set; }

        internal CMVideo()
        {
        }

        internal CMVideo(Video video)
        {
            this.VideoID = video.Id;
            this.CultureCode = video.CultureCode;
            this.CreationDate = video.CreationDate;
            this.ModificationDate = video.ModificationDate;
            this.ApprobationDate = video.ApprobationDate;
            this.AuthorID = video.AuthorID;
            this.Title = video.Title;
            this.Description = video.Description;
            this.VideoFile = video.VideoFile;
            this.ImageFile = video.ImageFile;
            this.Duration = video.Duration;
            this.ExternalSource = video.IsExternal;
        }
    }
}
